/**
 * @param {河流名称} res 
 * @author 焦誉暄
 * @url {{path}}/api/theRiverWater/getRvNms
 * @method {post}
 * @params {string} childCode 请求头参数
 * 
 */

import request from '@/utils/request'
export function getRvNms(childCode, data) {
  return request({
    headers: {
      'childCode': childCode
    },
    url: '/zy-api/api/theRiverWater/getRvNms',
    method: 'post',
    data: data
  })
};

/**
 * 
 * @param {河流取水统计列表数据} res
 * @author 焦誉暄
 * @url {{path}}/api/theRiverWater/getList?rvCd=F0000000000S&adCd=500101
 * @method {post}
 * @params {string} childCode 请求头参数
 * 
 */
export function getList(childCode, params) {
  return request({
    headers: {
      'childCode': childCode,
      'Content-Type': "multipart/form-data"
    },
    url: '/zy-api/api/theRiverWater/getList',
    method: 'post',
    params: params
  })
};

/**
 * 
 * @param {河流取水统计 查看} res
 * @author 焦誉暄
 * @url {{path}}/api/theRiverWater/get?rvCd=F0000000000S&adCd=500000
 * @method {post}
 * @params {string} childCode 请求头参数
 * 
 */
export function get(childCode, params) {
  return request({
    headers: {
      'childCode': childCode,
      'Content-Type': "multipart/form-data"
    },
    url: '/zy-api/api/theRiverWater/get',
    method: 'post',
    params: params
  })
};
